package com.mllweb.blog.core.notice.email.template;

/**
 * 激活账号模板
 */
public class ActivateTemplate implements EmailTemplate {
    private String content;

    public ActivateTemplate() {
        this.content = readTemplate("activate");
    }


    @Override
    public void config(String key, String value) {
        this.content = content.replace("${" + key + "}", value);
    }

    @Override
    public String subject() {
        return "激活你的MllWeb账号";
    }

    @Override
    public String contentType() {
        return "text/html; charset=utf-8";
    }

    @Override
    public String body() {
        return this.content;
    }


}
